<%@ page import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
    <style>
        html {
            background: #fff;
        }
    </style>
</head>

<body>

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <div class="layui-tab-content" style="height: 100%;">
        <div class="layui-tab-item layui-show">
            <div class="layui-container">
                <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
                    <form:form commandName="distributionCheck" method="post">

                        <form:hidden path="id"/>
                        <input type="hidden" name="_method" value="${_method}">

                        <div class="layui-form-item">
                            <label class="layui-form-label"><fmt:message key='shjg'/></label>
                            <div class="layui-input-inline" style="width:70%;">
                                <input type="radio" name="checkStatus" value="2" title="<fmt:message key='shtg'/>"/>
                                <input type="radio" name="checkStatus" value="3" title="<fmt:message key='shbtg'/>"/>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label"><fmt:message key='shbz'/></label>
                            <div class="layui-input-inline" style="width:80%;">
                                <form:textarea path="checkNote" calss="layui-input" style="height:100px;width:100%"/>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label for="" class="layui-form-label"></label>
                            <div class="layui-input-inline">
                                <input type="button" style="display: none;" value="<fmt:message key='qd1'/>" id="submit" lay-filter="submit" lay-submit class="layui-btn">
                            </div>
                        </div>
                    </form:form>
                </div>
            </div>
        </div>

    </div>
</div>

<script>


    layui.use(['form'], function () {
        var form = layui.form;

        form.on('submit(submit)', function () {

            $("#distributionCheck").ajaxSubmit({
                success: function (res) {
                    if (res.status) {
                        layer.alert("<fmt:message key='shcg'/>", function () {
                            parent.location.reload();
                        });
                    } else {
                        layer.alert(res.message);
                    }
                }
            });
        });
    });
</script>
</body>
</fmt:bundle>
</html>